package pt.ua.helpdesk.client;

import java.util.ArrayList;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public interface ServicePerformance extends RemoteService {
	
	public ArrayList getAssistants();
	
	public ArrayList getAssisPerformance(Integer idAssis);
	
	public ArrayList getOverAllPerformance();
	
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static ServicePerformanceAsync instance;
		public static ServicePerformanceAsync getInstance(){
			if (instance == null) {
				instance = (ServicePerformanceAsync) GWT.create(ServicePerformance.class);
				ServiceDefTarget target = (ServiceDefTarget) instance;
				target.setServiceEntryPoint(GWT.getModuleBaseURL() + "ServicePerformance");
			}
			return instance;
		}
	}
}
